import {createApp} from 'vue'
// import './style.css'
import App from './App.vue'
// 单个引入，后面改为全量引入
// import {Button, Icon, NavBar, Toast, Tabbar, TabbarItem} from "vant";
import routes from "./config/routes.ts";
import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
// 全量引入
import Vant from 'vant';
import './global.css';

const app = createApp(App);
// app.use(Button);
// app.use(NavBar);
// app.use(Icon);
// app.use(Tabbar);
// app.use(TabbarItem);
// app.use(Toast);
app.use(Vant);

const router = createRouter({
    // history: createMemoryHistory(),
    // 改用Hash模式，会在url后补上#加地址
    // history: createWebHashHistory(),
    // 实际上线一般不采用Hash模式
    history: createWebHistory(),
    routes,
})
app.use(router);
app.mount('#app')
